ccflags-y := -std=gnu99 -Wno-declaration-after-statement
obj-m := cam.o gnss.o imu.o livox.o

KERNEL_SRC :=  /home/ubuntu/peta_prj/linuxPsBase/15egv4/build/tmp/work-shared/zynqmp-generic/kernel-build-artifacts
ARCH := arm64
CROSS_COMPILE := /tools/Xilinx/Vitis/2020.1/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-
SRC := $(shell pwd)

all:
	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_SRC) M=$(SRC)

clean:
	rm -f *.o *~ core .depend .*.cmd  *.mod.c *.mod  
	rm -f Module.markers Module.symvers modules.order
	rm -rf .tmp_versions Modules.symvers